package DataStructure.QueueLearning.QueueArray;

public class TestDemo {
    public static void main(String[] args) {

        MyQueueArray<String> queue = new MyQueueArray<>(2);
        queue.offer("zs");
        queue.offer("ls");
        queue.offer("wu");
        queue.offer("zl");

        // zs  ls  wu  zl
        System.out.println(queue);

        System.out.println(queue.poll());// zs
        System.out.println(queue.poll());// ls
        System.out.println(queue);// wu  zl

        queue.offer("aa");
        System.out.println(queue);

        queue.poll();
        queue.poll();
        queue.poll();


        System.out.println("-----");
        System.out.println(queue.poll());
        System.out.println(queue);



    }
}
